<?php include('./templete/public/header.php'); ?>
<title><?php echo $web['site_config']['site_title'].'_'; ?>职位详情</title>
<body style="background: #f4f4f4;">
	<header class="clearfix">
		<a class="fl header_return"><i class="iconzuojiantou1 iconfont">&#xe616;</i>返回</a>
		<a class="header_new">区域招聘</a>
		<a class="fr header_more"><i class="iconmore iconfont">&#xe637;</i></a>
	</header>
	<div class="collect_container">
		<div class="collect_warrper">
			
				<div class="collect_slide recruitment_margin pr">
					<div class="collect_slide_top clearfix">
						<a href="/index/company/index?id=<?php echo $job_data['getcid'];?>">
						<span class="fl one-txt-cut rem45"> <?php echo $job_data['jobname']; ?></span>
						</a>
						<i class="iconfont eyes fr"><d><?php echo $job_data['reading']; ?></d></i>
						<!-- <i <?php if (!$zw_gz): ?>
							style="color: #333;" 
						<?php endif ?> onclick="gz(<?php echo $job_data['jobid']  ?>)" class="iconfont icon_strats fr">&#xe8aa;</i> -->
						
					</div>
					<a href="/index/company/index?id=<?php echo $job_data['getcid'];?>">
					<span class="recruitment_tst"><?php echo $job_data['cid']; ?></span>
					</a>
					<div class="collect_slide_bottom">
						<span href="javascript:;"><i class="iconfont icont">&#xe8ad;</i><?php echo $job_data['city']; ?></span>
						<span href="javascript:;"><i class="iconfont icont">&#xe8a3;</i><?php echo $job_data['wage']; ?></span>
						<span href="javascript:;"><i class="iconfont icont">&#xe8ac;</i><?php echo $job_data['update_time']; ?></span>
					</div>
					<!-- <?php if ($job_data['is_index']==1): ?>
						<i class="hot center-y-top" style="background-image:url(__INDEX__/images/hot.png) ;"></i>
					<?php endif ?> -->
					
				</div>
			
			<div class="areanys_recruit_contion">
				<div class="areanys_recruit_main">
					<span class="areanys_recruit_main_top">热招店铺</span>
					<div class="areanys_test-container">
							<p style="line-height: 30px;color: #666;">
									<?php echo $job_data['job_specification']; ?>
							</p>
					</div>
				</div>
				<div class="areanys_recruit_main">
					<span class="areanys_recruit_main_top">职位要求</span>
					<div class="areanys_test-container">
							<p style="line-height: 30px;color: #666;">
									<?php echo $job_data['job_requirements']; ?><?php echo $wzd?$job_data['job_data']:'' ?>
							</p>
					</div>
				</div>
			</div>


					<span class="areanys_recruit_main_top margin20">职位推荐<i></i></span>
                    <?php foreach ($job_index as $va): ?>
<!--            <a class="areanys_recruit_main" href="/index/zhiwei/index?id=--><?php //echo $va['jobid']; ?><!--">-->
<!--					<div class="area_bottom areanys_bottom pr">-->
<!---->
<!--						<div class="collect_slide_top clearfix">-->
<!--							<span class="fl one-txt-cut rem45">--><?php //echo $va['jobname'];?><!--</span>-->
<!--							<i class="iconfont eyes fr"><d>2123</d></i>-->
<!--						</div>-->
<!--						<span class="recruitment_tst">--><?php //echo $va['cid'];?><!--</span>-->
<!--						<div class="collect_slide_bottom">-->
<!--							<span href="javascript:;"><i class="iconfont icont">&#xe8ad;</i>--><?php //echo $va['city'];?><!--</span>-->
<!--							<span href="javascript:;"><i class="iconfont icont">&#xe8a3;</i>--><?php //echo $va['wage'];?><!--</span>-->
<!--							<span href="javascript:;"><i class="iconfont icont">&#xe8ac;</i>--><?php //echo $va['update_time'];?><!--</span>-->
<!--						</div>-->
<!---->
<!--						<i class="hot center-y-top" style="background-image:url(__INDEX__/images/hot.png) ;"></i>-->
<!--					</div>-->
<!--            </a>-->
                        <a href="/index/zhiwei/index?id=<?php echo $va['jobid']; ?>">
                            <div class="collect_slide area_bottom pr">
                                <div class="collect_slide_top clearfix">
                                    <span class="fl one-txt-cut rem45"><em class="touxiang" style="width: 1rem;border-radius:0;"><img src="<?php echo $va['logo']; ?>" alt="" style="width: 100%" /></em><?php echo $va['jobname']; ?></span>
                                    <i class="iconfont eyes fr"><d><?php echo $va['reading']; ?></d></i>
                                </div>
                                <span class="recruitment_tst"><?php echo $va['cid']; ?></span>
                                <div class="collect_slide_bottom">
                                    <span href="javascript:;"><i class="iconfont icont">&#xe8ad;</i><?php echo $va['city']; ?></span>
                                    <span href="javascript:;"><i class="iconfont icont">&#xe8a3;</i><?php echo $va['wage']; ?></span>
                                    <span href="javascript:;"><i class="iconfont icont">&#xe8ac;</i><?php echo $va['update_time']; ?></span>
                                </div>
						<i class="hot center-y-top" style="background-image:url(__INDEX__/images/hot.png) ;"></i>
                            </div>
                        </a>
                    <?php endforeach ?>


			

		</div>	
		<a href="javascript:;" onclick="toudi()" class="indexover_btn">
			<?php if ($toudi_state == 1): ?>
				已投递
				<?php else: ?>
				立即投递
			<?php endif ?>
			
	</a>
	</div>
	
	<hr style="height: 160px;border: none;">
<?php include('./templete/public/footer.php'); ?>
	
	<div id="zhezhao">
	</div>
	<div class="hint_pop">
		<i class="icopeople"><img src="__INDEX__/images/popup.png"/></i>
		<div class="hint_pop_wapper">
			<p>完整度不足70%不能投递</p>
			<a href="#" class="hint_pop_btn">我知道了</a>
		</div>
		<i class="iconfont iconout">&#xe63f;</i>
	</div>
</body>
	<script>
        const wzd = "<?php echo $wzd; ?>";
        if (wzd === "未创建") {
			$(".indexover_btn").html("请先创建简历");
		}
	    function toudi() {
            if (wzd === '未创建') {
                alert('请先创建简历');
                return false;
            }else{
                td_state(<?php echo $job_data['jobid'] ?>);
            }
        }
        function td_state(id) {
            $.ajax({
                type:"post",
                url:"/index/zhiwei/toudi",
                data:'id='+id,
                success:function(res){
                    if (res.code===1) {
                        alert(res.msg);
                        $(".indexover_btn").html("立即投递");
                    }else{
                        location.href="<?php echo url('zhiwei/jlist',['id'=>$job_data['jobid']]) ?>"
                    }

                }
            })
        }

		// }else{
		// 	$("#zhezhao").css({"display":"block"});
		// 	$(".hint_pop").css({"display":"block"})
		// }

	// function gz(id) {
	// 	$.ajax({
	// 		type:"post",
	// 		url:"/index/zhiwei/zw_gz",
	// 		data:'id='+id,
	// 		success:function(res){
	// 			alert(res.msg);
	// 			if (res.code==2) {
	// 				$(".icon_strats").css("color","#FF6600");
	// 			}else{
	// 				$(".icon_strats").css("color","#666");
	// 			}
	//
	// 		}
	// 	})
	// }
	$(".hint_pop").click(function(){
		$("#zhezhao").css({"display":"none"})
		$(this).css({"display":"none"})
	})
	
	// $(".indexover_btn").click(function(){
	// 	if (<?php echo $wzd ?> >70) {
	// 		gz();
	// 	}else{
	// 		
	// 	}
		
	// })

	// function gz(id) {
	// 	$.ajax({
	// 		type:"post",
	// 		url:"/index/company/gs_gz",
	// 		data:'id='+id,
	// 		success:function(res){
	// 			alert(res.msg);
	// 			if (res.code==2) {
	// 				$(".recruit_footer_follow").html("已关注");
	// 			}else{
	// 				$(".recruit_footer_follow").html("关注企业");
	// 			}
				
	// 		}
	// 	})
	// }
</script>
</html>

